package com.goldenautumn.prefabricate.activity.mine.order

import com.goldenautumn.prefabricate.R
import com.goldenautumn.prefabricate.databinding.ActivityApplyRefundResultBinding
import com.gyf.immersionbar.ImmersionBar
import kotlinx.coroutines.isActive
import qncx.external.common.base.BaseActivity
import qncx.external.common.utils.intent

class ApplyRefundResultActivity : BaseActivity<ActivityApplyRefundResultBinding>() {

    override fun getLayoutId(): Int = R.layout.activity_apply_refund_result

    override suspend fun main() {
        ImmersionBar.setTitleBar(this, mBinding.toolbar)
        initToolbarNav(mBinding.toolbar)

        mBinding.detailsBtn.setOnClickListener {
            startActivity(AfterSalesActivity::class.intent)
            finish()
        }

        while(isActive){
            events.receive()
        }
    }

}